package org.jeecg.modules.procurement.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.procurement.entity.BussMaterialApplication;
import org.jeecg.modules.procurement.entity.BussMaterialApplicationDetail;
import org.jeecg.modules.procurement.vo.BussMaterialApplicationPageVo;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 材料请购单
 * @Author: jeecg-boot
 * @Date:   2024-06-05
 * @Version: V1.0
 */
public interface IBussMaterialApplicationService extends IService<BussMaterialApplication> {


//	IPage<BussMaterialApplicationPageVo> p

	public IPage<BussMaterialApplicationPageVo> pagelist(Page<BussMaterialApplicationPageVo> page, QueryWrapper<BussMaterialApplicationPageVo> queryWrapper);

	/**
	 * 添加一对多
	 *
	 * @param bussMaterialApplication
	 * @param bussMaterialApplicationDetailList
	 */
	public void saveMain(BussMaterialApplication bussMaterialApplication,List<BussMaterialApplicationDetail> bussMaterialApplicationDetailList) ;
	
	/**
	 * 修改一对多
	 *
   * @param bussMaterialApplication
   * @param bussMaterialApplicationDetailList
	 */
	public void updateMain(BussMaterialApplication bussMaterialApplication,List<BussMaterialApplicationDetail> bussMaterialApplicationDetailList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
